/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bankapplicationgui;

import java.io.*;
/**
 *
 * @author harshi
 */
public class BankApp {
    
    String userName;
    String password;
    float amount;
    
    public BankApp(){
        amount=0;
    }
    
    public void setUserName(String a){
        userName=new String(a);
    }
    
    public void setPassword(String a){
        password=new String(a);
    }
    
    public String getUserName(){
        return userName;
    }
    
    public boolean login(){
        if((getUserName().equals("saibaba"))&&(getPassword().equals("harshi"))){
            return true;
        }
        else
            return false;
    }
    
    public String getPassword(){
        return password;
    }
    
    public void deposit(float a){
        amount=amount+a;
    }
    
    public void withdraw(float a){
        amount=amount-a;
    }
    
    public float balance(){
        return amount;
    }
    
    
}

